<style>
.ui-autocomplete-loading { background: white url('<?php echo $this->Html->url('/img/ui-anim_basic_16x16.gif', true); ?>') right center no-repeat; }

.ui-autocomplete {
    
    max-height: 100px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    /* add padding to account for vertical scrollbar */
    padding-right: 20px;
    
}
	/* IE 6 doesn't support max-height
	 * we use height instead, but this forces the menu to always be this tall
	 */
* html .ui-autocomplete {
    
        height: 100px;
}
	</style> 


<h1>Envoyer un email</h1>


<?php echo $form -> create('Email', array('action' => 'nouveauEmail')); ?>
<?php echo $form -> input('Email.titre',array("style" => 'width:700px')); ?>
<?php echo $form -> hidden('Email.date',array("value" => $date)); ?>

<?php echo $form -> input('Recepteur.destinataire',array("label" => "Destinataire",
    "id" => "destinataire",
    "style" => "width:700px"
    )
        ); ?>

<?php echo $form -> hidden('Email.utilisateur_id',array("value" => $utilisateur_id)); ?>
<?php echo $form -> hidden('Message.0.utilisateur_id',array("value" => $utilisateur_id)); ?>
<?php echo $form -> hidden('Message.0.date',array("value" => $date)); ?>


<?php echo $form -> input('Message.0.corp',array("style" => 'width:700px;height:150px',"label" => "message")); ?>
<?php echo $form -> end('Envoyer'); ?>



